Skip to content

test: add Base-to-Solana integration tests#193

Open
Arvuno wants to merge 1 commit into
base:mainfrom
Arvuno:new/cross-chain
Open

test: add Base-to-Solana integration tests#193
Arvuno wants to merge 1 commit into
base:mainfrom
Arvuno:new/cross-chain

Conversation

@Arvuno
Copy link
Copy Markdown

@Arvuno Arvuno commented May 31, 2026

Add Foundry integration tests for Base-to-Solana message flow covering initializeTransfer → prove → finalizeTransfer, both directions and MessageType.Transfer/Call.

Add Foundry integration tests in base/test/integration/BridgeIntegration.t.sol
covering the full cross-chain message lifecycle:

- initializeTransfer → prove (register) → finalizeTransfer flow
- Bidirectional tests: Base→Solana and Solana→Base directions
- MessageType.Transfer and MessageType.Call coverage
- WrongAddressEncoding detection in finalizeTransfer
- Token registration flow via bridgeCall
- Cross-chain call flow via Twin deployment

Tests use mocked BridgeValidator to simulate oracle pre-validation.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants